﻿<!DOCTYPE HTML>
<html lang="zh-hans" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta content="webkit|ie-comp|ie-stand" name="renderer">
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"
          name="viewport"/>
    <meta content="no-siteapp" http-equiv="Cache-Control"/>
    <link rel="Bookmark" th:href="@{/favicon.ico}">
    <link rel="Shortcut Icon" th:href="@{/favicon.ico}"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" th:src="@{/lib/html5shiv.js}"></script>
    <script type="text/javascript" th:src="@{/lib/respond.min.js}"></script>
    <![endif]-->
    <script th:src="@{/js/groupInfoEdit.js}" type="text/javascript"></script>
    <link rel="stylesheet" th:href="@{/h-ui/css/H-ui.min.css}" type="text/css"/>
    <link rel="stylesheet" th:href="@{/h-ui.admin/css/H-ui.admin.css}" type="text/css"/>
    <link rel="stylesheet" th:href="@{/lib/Hui-iconfont/1.0.8/iconfont.css}" type="text/css"/>
    <link id="skin" rel="stylesheet" th:href="@{/h-ui.admin/skin/green/skin.css}" type="text/css"/>
    <link rel="stylesheet" th:href="@{/h-ui.admin/css/style.css}" type="text/css"/>
    <!--[if IE 6]>
    <script type="text/javascript" th:src="@{/lib/DD_belatedPNG_0.0.8a-min.js}"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>编辑团体会员登记</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 团体会员
    <span
            class="c-gray en">&gt;</span> 编辑团体会员登记 <a class="btn btn-success radius r"
                                                          onclick="PageRefresh()"
                                                          style="line-height:1.6em;margin-top:3px" title="刷新"><i
            class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <form role="form">
        <div class="text-c">
            <input class="input-text" name="keywords" placeholder="请输入关键字" style="width:250px" th:value="${keywords}"
                   type="text">
            <button class="btn btn-success" id="search-btn" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索会员
            </button>
        </div>
    </form>
    <div class="cl pd-5 bg-1 bk-gray mt-20"><span class="l"><a class="btn btn-danger radius"
                                                               href="javascript:void(0);"
                                                               onclick="info_del(this)"
                                                               th:attr="_href=@{/info/groupDel}"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> <a
            class="btn btn-primary radius" href="javascript:void(0);"
            onclick="info_add('添加团体会员','/groupInfo','','')"><i class="Hui-iconfont">&#xe600;</i> 添加团体会员</a>
        <a class="btn btn-danger radius"
           href="javascript:void(0);"
           onclick="info_print(this)"
           th:attr="_href=@{/exportAllGroup}"><i class="Hui-iconfont">&#xe652;</i> 批量导出</a>
    </span> <span
            class="r">共有数据：<strong>[[${result.data.total}]]</strong> 条</span></div>
    <table class="table table-border table-bordered table-bg">
        <thead>
        <tr>
            <th colspan="10" scope="col">团体会员列表</th>
        </tr>
        <tr class="text-c">
            <th width="10"><input id='all' type="checkbox"></th>
            <th>单位名称</th>
            <th>单位地址</th>
            <th>联系人</th>
            <th>手机</th>
            <th>联系邮箱</th>
            <th>单位邮编</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <!--		遍历传入数据-->
        <tr class="text-c" th:each="m : ${result.data.list}">
            <td><input class='item' name="groupID" th:value="${m.groupID}" type="checkbox"/></td>
            <td th:text="${m.orgName}"></td>
            <td th:utext="${m.orgLoc}"></td>
            <td th:utext="${m.orgContact}"></td>
            <td th:utext="${m.orgPhone}"></td>
            <td th:utext="${m.orgEmail}"></td>
            <td th:utext="${m.orgMail}"></td>
            <td class="td-status"><span class="label label-success radius"
                                        th:utext="${m.status == '通过'} ? '通过' : ''"></span><span
                    class="label label-danger radius" th:utext="${m.status == '驳回'} ? '驳回' : ''"></span>
                <span
                        class="label label-primary radius" th:utext="${m.status == '待审核'} ? '待审核' : ''"></span>
            </td>
            <td class="td-manage">
                <a class="ml-5"
                   href="javascript:void(0);"
                   style="text-decoration:none"
                   th:onclick="|info_edit('编辑','@{/editGroup?groupID={id}(id=${m.groupID})}','','');|"
                   title="编辑"><i
                        class="Hui-iconfont">&#xe6df;</i></a>
                <a class="ml-5"
                   href="javascript:void(0);"
                   style="text-decoration:none"
                   th:onclick="|printConfirm('@{/exportSingleGroup/{groupID}(groupID=${m.groupID})}');|"
                   title="打印"><i
                        class="Hui-iconfont">&#xe652;</i></a>
                <a class="ml-5" href="javascript:void(0);"
                   style="text-decoration:none"
                   th:onclick="|deleteConfirm('@{/info/delGroup/{groupID}(groupID=${m.groupID})}');|"
                   title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>
            </td>
        </tr>
        </tbody>
    </table>
    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <tr class="pagination">
            <td><a class="btn btn-primary-outline radius size-MINI" href="javascript:void(0);"
                   th:onclick="topage(1)">首页</a></td>
            &nbsp;&nbsp;
            <td th:class="${result.data.isFirstPage} ? 'disabled' : ''">
                <a class="btn btn-primary-outline radius size-MINI"
                   href="javascript:void(0);"
                   th:onclick="${result.data.isFirstPage}? '' :|topage(${result.data.prePage})|">上一页</a>
            </td>
            &nbsp;&nbsp;
            <td th:class="${result.data.isLastPage} ? 'disabled' : ''">
                <a class="btn btn-primary-outline radius size-MINI"
                   href="javascript:void(0);"
                   th:onclick="${result.data.isLastPage} ? '' : |topage(${result.data.nextPage})|">下一页</a>
            </td>
            &nbsp;&nbsp;
            <td><a class="btn btn-primary-outline radius size-MINI" href="javascript:void(0);"
                   th:onclick="|topage(${result.data.pages})|">尾页</a></td>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <td> 当前第 [[${result.data.pageNum}]] 页，共 [[${result.data.pages}]] 页，共 [[${result.data.total}]]
                条数据
            </td>
        </tr>
    </div>
</div>
<!--_footer 作为公共模版分离出去-->
<script th:src="@{/lib/jquery/1.9.1/jquery.min.js}" type="text/javascript"></script>
<script th:src="@{/lib/layer/2.4/layer.js}" type="text/javascript"></script>
<script th:src="@{/h-ui/js/H-ui.min.js}" type="text/javascript"></script>
<script th:src="@{/h-ui.admin/js/H-ui.admin.js}" type="text/javascript"></script>

<!--请在下方写此页面业务相关的脚本-->
<script th:src="@{/lib/My97DatePicker/4.8/WdatePicker.js}" type="text/javascript"></script>
<script th:src="@{/lib/datatables/1.10.15/jquery.dataTables.min.js}" type="text/javascript"></script>
<script th:src="@{/lib/laypage/1.2/laypage.js}" type="text/javascript"></script>
</body>
</html>